SmartFTP FTP Library
IFTPConnection::GetFileHash Method

Retrieves the hash value of a file or portion specified with nStart and nLen.

IDL
HRESULT GetFileHash(
    [in] HashAlgo algo, 
    [in] BSTR file, 
    [in] ULONGLONG start, 
    [in] ULONGLONG length, 
    [out, retval] BSTR* retval
);

If nStart and nLen are both set to zero then the hash command is sent without the numeric arguments. 

The client sends a hash command (XCRC, XMD5, XSHA1) to get the hash value. Check with the IsHashAlgoAvailable method if the feature is supported by the remote FTP server.

What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.